#ifndef INFORMATION_H
#define INFORMATION_H

#include <QWidget>
#include <QTimer>
#include "linechart.h"
#include <QPushButton>
#include "appearancewin.h"
namespace Ui {
class Information;
}

class Information : public QWidget
{
    Q_OBJECT

public:
    explicit Information(QWidget *parent = nullptr);
    ~Information();
    QPushButton * getButton();

private slots:
    void on_closeButton_clicked();  // 控制设备状态
    void updateCounter();           // 更新计时显示


    void on_SeeDetailButton_clicked();

private:
    Ui::Information *ui;
    LineChart *line;   // 折线图
    QTimer *timer;     // 计时器
    int counter;       // 计时器计数
};

#endif // INFORMATION_H
